package com.mallcloud.mall.admin.api.vo;

import com.mallcloud.mall.admin.api.entity.SysPost;
import com.mallcloud.mall.admin.api.entity.SysRole;
import com.mallcloud.mall.common.core.sensitive.Sensitive;
import com.mallcloud.mall.common.core.sensitive.SensitiveTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@ApiModel(value = "UserVO", description = "前端用户展示对象")
@Data
public class UserVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键")
	private Long userId;

	@ApiModelProperty(value = "用户名")
	private String username;

	@ApiModelProperty(value = "密码")
	private String password;

	@ApiModelProperty(value = "随机盐")
	private String salt;

	@ApiModelProperty(value = "微信open id")
	private String wxOpenid;

	@ApiModelProperty(value = "qq open id")
	private String qqOpenid;

	@ApiModelProperty(value = "创建时间")
	private Date createTime;

	@ApiModelProperty(value = "修改时间")
	private Date updateTime;

	@ApiModelProperty(value = "删除标记,1:已删除,0:正常")
	private String delFlag;

	@ApiModelProperty(value = "锁定标记,0:正常,9:已锁定")
	private String lockFlag;

	@Sensitive(type = SensitiveTypeEnum.MOBILE_PHONE)
	@ApiModelProperty(value = "手机号")
	private String phone;

	@ApiModelProperty(value = "头像")
	private String avatar;

	@ApiModelProperty(value = "所属部门")
	private Long deptId;

	@ApiModelProperty(value = "所属租户")
	private Long tenantId;

	@ApiModelProperty(value = "所属部门名称")
	private String deptName;

	@ApiModelProperty(value = "拥有的角色列表")
	private List<SysRole> roleList;

	@ApiModelProperty(value = "岗位列表")
	private List<SysPost> postList;

	@ApiModelProperty(value = "昵称")
	private String nickname;

	@ApiModelProperty(value = "姓名")
	private String name;

	@ApiModelProperty(value = "邮箱")
	private String email;

	@ApiModelProperty(value = "卡号")
	private String cardNo;

}
